package com.sky.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @projectName: netty-cloud
 * @package: com.sky.controller
 * @className: IndexController
 * @author: zhl
 * @description: TODO
 * @date: 2024/4/26 16:57
 * @version: 1.0
 */
@RestController
public class IndexController {

    @GetMapping("/index")
    @PreAuthorize("hasAuthority('SCOPE_message.read')")
    public String index() {
        return "访问资源服务器成功!";
    }
}
